package ar.com.mooral.activities;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import android.widget.Toast;
import ar.com.mooral.crohn.application.CrohnContext;
import ar.com.mooral.data.GeneralStatus;
import ar.com.mooral.data.Result;
import ar.com.mooral.data.WorkActivityIncidence;
import ar.com.mooral.pojo.GeneralStatusPojo;

public class CrohnActivity extends Activity {
    

    protected void showMessage(Result r){
    	showMessage(r.getDescription());
    }
    
    protected void showMessage(String message){
    	
    	Context context = getApplicationContext();
    	CharSequence text = message;
    	int duration = Toast.LENGTH_SHORT * 2;

    	Toast toast = Toast.makeText(context, text, duration);
    	toast.show();
    	
    }

    
}
